import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/normalize.css'
// 图片懒加载
import Vuelazyload from 'vue-lazyload'
Vue.use(Vuelazyload,{
  preload:1,
  loading:require('assets/gif/Pinwheel.gif')
})

import axios from 'axios';
axios.defaults.baseURL = 'http://localhost:3000';
Vue.prototype.$http = axios;
axios.interceptors.request.use(config => {
  console.log('请求头')
  return config
});

axios.interceptors.response.use(config => {
  console.log('响应头')
  return config
}, function (err) {
  return Promise.reject(err)
}
)



Vue.use(ElementUI)
Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
